import { configureStore } from '@reduxjs/toolkit'
import testSlice from './testSlice';
import toastSlice from './toastSlice';
import userSlice from './userSlice';

// 创建一个store对象
const store = configureStore({
    reducer: {
        // 在主仓库里面 注册 分仓库
        test: testSlice,
        user: userSlice,
        toast: toastSlice
    }
})
export default store;